package com.jozen.modelbase.netwoek;

import android.text.TextUtils;


public class ApiParams {
//        public static String BASE_URL = "http://183.6.57.187:801";
    public static String BASE_URL = "http://127.0.0.1";
//    public static String BASE_URL = "https://autodev.openspeech.cn/csp/";
//    public static String PORT = "8082";

    public static final String ADDRESS_URL = "cgi-bin/app.cgi";

    public static final String POST_HEADER = "Content-Type:application/json;charset=utf-8;";

    //动态配置baseUrl地址
    public static String getBaseUrl() {
//        return BASE_URL + ":" + PORT + "/";
        return BASE_URL;
    }

    public static void setBaseUrl(String ip, String port) {
        if (!TextUtils.isEmpty(ip) && !TextUtils.isEmpty(port)) {
            BASE_URL = "http://" + ip + ":" + port + "/";
            Common.APP_LOGO_URL = "http://" + ip + ":" + port + "/config/header_logo.png";
        }
    }
}
